/**
  ******************************************************************************
  * @file    iwdog_monitor.h
  * @author  chengbb
  * @version V1.0
  * @date    2017-08-14
  * @brief   ????????
  ******************************************************************************
  * @attention
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2016 MindX</center></h2>
  ******************************************************************************
  */
/** @addtogroup BSP
* @{
*/

#ifndef __IWDOG_MONITOR_H
#define __IWDOG_MONITOR_H

#include "stm32f10x.h"
#include "FreeRTOS.h"
#include "event_groups.h"


#define TASK_BIT_1	 (1 << 0)
#define TASK_BIT_2	 (1 << 1)
#define TASK_BIT_3	 (1 << 2)
#define TASK_BIT_4	 (1 << 3)
#define TASK_BIT_5	 (1 << 4)

#define TASK_BIT_ALL (TASK_BIT_1 | TASK_BIT_2 | TASK_BIT_3 | TASK_BIT_4 | TASK_BIT_5)

extern EventGroupHandle_t xCreatedEventGroup;

void AppObjCreate (void);
void IWDogTask(void *pvParameters);
void bsp_InitIwdg(uint32_t _ulIWDGTime);

#endif

/**
  * @}
  */
/******************* (C) COPYRIGHT 2017 MINDX ******END OF FILE******************/

